//
//  SkinManager.h
//  dyss_v2
//
//  Created by LXF on 16/3/2.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSMutableSet+XXWeakMutableSet.h"
@class XXSkin;

@protocol ReloadSkinResourceProtocal <NSObject>

@required
-(void)execReloadResource;

@optional
// 重写此方法返回 正在更换的皮肤的 提示信息 例如: 正在更换 "标题颜色"
-(NSString *)ReloadResourceShowMessage;


- (void)xx_register;

- (void)xx_deRegister;

@end

@interface SkinManager : NSObject

+(instancetype)shared;

@property (nonatomic, strong) NSMutableSet *nc_target;

- (void)xx_register:(id)obj;

- (void)xx_deRegister:(id)obj;

- (void)saveSkin:(XXSkin *)skin reloadSKinResource:(void (^)(NSString *str,CGFloat progress))progress completed:(void (^)())completed;

@end
